#!/bin/bash
a=0
while [ $a -le $1 ]
do
	sum=$[$sum+$a]
	a=$[$a+1]
done
echo "sum=$sum"
a=0
sum=0
while [ $a -le $1 ]
do
	let sum+=a
	let a++
done
echo "sum=$sum"
